package auth

import (
	"errors"
	"gitee.com/anyzzgo/usertest/user"
)

func Verify(user user.User) (bool, error) {
	if user.Name == "" {
		return false, errors.New("用户名称为空")
	}
	if user.Age <= 0 {
		return false, errors.New("用户年龄有误")
	}
	return true, nil
}
